import { dealImgUrl } from '../../configuration/staticimg'

export default (url, scale = 140) => {
  const urlformat = dealImgUrl(url)
  if (urlformat) {
    return `${urlformat}?imageMogr2/thumbnail/${scale}x${scale}`
  } else {
    return ''
  }
}
